{% extends "../base.html" %}

<!-- =================================================================== -->
<!-- Page onload ======================================================= -->
<!-- =================================================================== -->
{% block BaseHead %}
<script type="text/javascript">
GW.pageOnLoad = function() {
        // create panel and make resizable
    GW.panel = GWP.newPanel( 'idPanel' );
    GWP.resize( GW.panel );
    GW.wait.hide();
    GW.console( 'datastore.html init' );
    var oPB4 = new YAHOO.widget.Button("idExit", { onclick: { fn: GW.datastoreExit }});
};
// Exit
GW.datastoreExit = function(){
    if( confirm('Exit validate datastore?')){
        window.location = "/admin";
    }
};

</script>
{% endblock %}

<!-- =================================================================== -->
<!-- Page body ========================================================= -->
<!-- =================================================================== -->
{% block BaseBody %}
<style type="text/css">
    .yui-button#idExit button {
        padding-left: 3em;
        background: url(/static/img/exit.png) 10% 50% no-repeat;
    }
</style>

<div id="idPanel" style="visibility:hidden" >
    <div class="hd">GeoWiki Validate Datastore</div>
    <div class="bd" style="overflow: auto">
        <input type="button" id="idExit" name="exitButton" value="Exit">
        <br />
        todo: need to check each datastore for internal consistency<br >
    </div>
    <div class="ft">GeoWiki Validate Datastore</div>
</div>

{% endblock %}

